package com.linkage.event.pojo.dao;

import com.linkage.event.pojo.entity.EventType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface EventTypeMapper {
    int deleteByPrimaryKey(String eventTypeCode);

    int insertSelective(EventType record);

    EventType selectByPrimaryKey(String eventTypeCode);

    int updateByPrimaryKeySelective(EventType record);

    int updateByPrimaryKey(EventType record);

    List<EventType> selectBySuperiorTypeCode(@Param("superiorTypeCode")String superiorTypeCode,@Param("status")String status);

    List<EventType> selectAllSuperiorType(@Param("type") String type, @Param("status")String status);
}